import request from "@/utils/request";

export function getOrderList(data) {
	return request({
		url: "/python/getOrderList",
		method: "get",
		headers: { "content-type": "application/json;charset=UTF-8" },
		params: data || {},
	});
}

export function addOrder(data) {
	return request({
		url: "/python/addOrder",
		method: "post",
		headers: { "content-type": "application/json;charset=UTF-8" },
		data: data || {},
	});
}

export function updateOrder(data) {
	return request({
		url: "/python/updateOrder",
		method: "post",
		headers: { "content-type": "application/json;charset=UTF-8" },
		data: data || {},
	});
}

export function deletOrder(data) {
	return request({
		url: "/python/deletOrder",
		method: "post",
		headers: { "content-type": "application/json;charset=UTF-8" },
		data: data || {},
	});
}
